package cloud.xiangyixiang.www.spring.boot.java.basics.classes;

/**
 * <p>
 * 人类
 * </p>
 *
 * @author weixin
 * @date 2023/9/18 20:14
 */
public class PersonStream {

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 工资
     */
    private Integer salary;

    /**
     * 性别
     */
    private String gender;

    /**
     * 故乡
     */
    private String home;

    public PersonStream(String name, Integer age, Integer salary){
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public PersonStream(String name, Integer age, Integer salary, String gender, String home){
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.gender = gender;
        this.home = home;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHome() {
        return home;
    }

    public void setHome(String home) {
        this.home = home;
    }

    @Override
    public String toString() {
        return "PersonStream{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", salary=" + salary +
                '}';
    }

}
